package com.txzt.gaea.common.enums;

public enum FundStatus {

    /**
     * 待处理
     */
    INIT(0,"待处理"),
    /**
     * 已完成
     */
    FINISH(1,"已完成"),
    ;

    private final Integer code;

    private final String info;

    FundStatus(Integer code, String info) {
        this.code = code;
        this.info = info;
    }

    public Integer getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public static String getInfoByCode(Integer code){
        FundStatus[] statuses = values();
        for (FundStatus status:statuses){
            if (status.getCode().equals(code)) {
                return status.getInfo();
            }
        }
        return "";
    }
}
